# 该模块是没有加if __name__ == '__main__'
# 会执行该模块中那段代码
# from ch6_spider.t8_post_object2 import FanYi

# 该模块加了if __name__ == '__main__'
# 不会执行那段代码
from ch6_spider.t8_post_object import FanYi

fan1 = FanYi('加油')
print(fan1.get_data())


